"""
Takrorlash
"""
print('----------------1-masala--------------------')

import random
import operator

# Birdan yuzgacha bo'lgan butun sonlarni
# aralashtirib chiqarish kerak

RRR = list(range(1, 101))
random.shuffle(RRR)
print(RRR)

print('----------------2-masala--------------------')

# Yuqoridagi royxatdagi ma'lumotlar teskari chiqsin

RRR.sort()
RRR.reverse()
print(RRR)

print('----------------3-masala--------------------')

# 2 ta royxat yaratish kerak va ular aralashib chiqishi
# kerak

import random

FFF = list(range(1, 61))
JJJ = list(range(40, 101))

random.shuffle(FFF)
random.shuffle(JJJ)
print(FFF)
print(JJJ)

print('----------------4-masala--------------------')

print(set(FFF) & set(JJJ))

print('----------------5-masala--------------------')

NNN = {1 : 'bir', 2 : 'ikki', 3 : 'uch', 4 : 'tjhniv', 5 : 'besh',}
PPP = dict(sorted(NNN.items(), key=operator.itemgetter(1)))
LLL = dict(sorted(NNN.items(), key=operator.itemgetter(1), reverse=True))
print(PPP, LLL)
